<template>
  <div class="wrapper">
  <swiper :options="swiperOptions">
    <swiper-slide v-for="item of swiperList" :key='item.id'>
      <img class="swiper-img" :src="item.imgUrl" />
    </swiper-slide>
    <div class="swiper-pagination" slot="pagination"></div>
  </swiper>
  </div>
</template>
<script>
export default {
  name: 'HomeSwiper',
  data () {
    return {
      swiperOptions: {
        pagination: '.swiper-pagination',
        loop: true
      },
      swiperList: [{
        id: '0001',
        imgUrl: 'http://img1.qunarzz.com/sight/p0/2006/55/55f6406af2a258b2a3.water.jpg_600x330_6d7d3310.jpg'
      }, {
        id: '0002',
        imgUrl: 'http://img1.qunarzz.com/sight/p0/2007/e0/e0f18647b7978fa0a3.water.jpg_600x330_e58bda62.jpg'
      }, {
        id: '0003',
        imgUrl: 'http://img1.qunarzz.com/sight/p0/1603/1c/1c67791edbe2677b90.img.jpg_600x330_d89c31a5.jpg'
      }]
    }
  }
}
</script>

<style lang="stylus" scoped>
   .wrapper >>> .swiper-pagination-bullet-active
     background: red !important
   .wrapper
     overflow :hidden
     width:100%
     height:0
     padding-bottom:31.25%
     .swiper-img
       width:100%
</style>
